/*
 * Change Logs:
 * Date           Author       Notes
 * 2022-01-27     tyustli          first implementation
 */

#ifndef __TRIPLET_H__
#define __TRIPLET_H__

#include "def.h"

typedef int ElemType;      // 定义抽象数据类型 ElemType 在本程序中为整型
typedef ElemType *Triplet; // 由 InitTriplet 分配 3 个元素存储空间

Status InitTriplet(Triplet *T, ElemType v1, ElemType v2, ElemType v3);
Status DestroyTriplet(Triplet *T);
Status Get(Triplet T, int i, ElemType *e);
Status Put(Triplet T, int i, ElemType e);
Status IsAscending(Triplet T);
Status IsDescending(Triplet T);
Status Max(Triplet T, ElemType *e);
Status Min(Triplet T, ElemType *e);


#endif /* __TRIPLET_H__ */

/****************** end of file ********************/
